// 运行时配置

// 全局初始化数据配置，用于 Layout 用户信息和权限初始化
// 更多信息见文档：https://umijs.org/docs/api/runtime-config#getinitialstate
export async function getInitialState(): Promise<{ name: string }> {
  return { name: '@umijs/max' };
}

export const layout = (initialState: any, setInitialState: any) => {
  console.log('@@@@', initialState, setInitialState);

  return {
    logo: 'https://img.alicdn.com/tfs/TB1YHEpwUT1gK0jSZFhXXaAtVXa-28-27.svg',
    menu: {
      locale: false,
      request: () => {
        const menuData = [
          {
            id: 1,
            parentId: 0,
            belong: 1,
            name: '系统管理',
            icon: '',
            path: 'system',
            component: '',
            layout: null,
            params: null,
            type: 1,
            sort: 0,
            access: null,
            enabled: true,
            enabledLabel: '启用',
            visible: true,
            remark: null,
            createdTime: '2023-05-10 10:13:50',
            updatedTime: '2023-06-29 17:27:40',
            revision: 8,
            roleFlag: true,
            children: [
              {
                id: 7,
                parentId: 1,
                belong: 1,
                name: '账号管理',
                icon: 'icon-zhanghaoguanli',
                path: 'accountManage',
                component: null,
                layout: null,
                params: null,
                type: 0,
                sort: 0,
                access: '',
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 09:49:01',
                updatedTime: '2024-03-08 11:20:45',
                revision: 10,
                roleFlag: true,
                children: [],
              },
              {
                id: 6,
                parentId: 1,
                belong: 1,
                name: '角色管理',
                icon: 'icon-jiaoseguanli',
                path: 'role',
                component: null,
                layout: null,
                params: null,
                type: 0,
                sort: 2,
                access: '',
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 08:45:36',
                updatedTime: '2024-03-08 11:20:51',
                revision: 6,
                roleFlag: true,
                children: [],
              },
              {
                id: 71,
                parentId: 1,
                belong: 1,
                name: '菜单管理',
                icon: 'icon-jiaoseguanli',
                path: 'menu',
                component: 'system/menu',
                layout: null,
                params: null,
                type: 0,
                sort: 2,
                access: '',
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 08:45:36',
                updatedTime: '2024-03-08 11:20:56',
                revision: 7,
                roleFlag: true,
                children: [],
              },
            ],
          },
          {
            id: 2,
            parentId: 0,
            belong: 1,
            name: '基础信息管理',
            icon: null,
            path: 'basic',
            component: null,
            layout: null,
            params: null,
            type: 1,
            sort: 1,
            access: null,
            enabled: true,
            enabledLabel: '启用',
            visible: true,
            remark: null,
            createdTime: '2023-05-12 11:04:27',
            updatedTime: '2023-06-28 15:09:47',
            revision: 3,
            roleFlag: true,
            children: [
              {
                id: 8,
                parentId: 2,
                belong: 1,
                name: '岗位管理',
                icon: 'icon-zhanghaoguanli',
                path: 'position',
                component: null,
                layout: null,
                params: null,
                type: 0,
                sort: 1,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 09:50:39',
                updatedTime: '2023-06-28 11:43:27',
                revision: 2,
                roleFlag: true,
                children: [],
              },
              {
                id: 9,
                parentId: 2,
                belong: 1,
                name: '部门管理',
                icon: 'icon-bumenguanli',
                path: 'dept',
                component: './system/dept',
                layout: null,
                params: null,
                type: 2,
                sort: 2,
                access: '',
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 09:51:04',
                updatedTime: '2024-03-04 16:59:37',
                revision: 9,
                roleFlag: true,
                children: [],
              },
              {
                id: 10,
                parentId: 2,
                belong: 1,
                name: '场景管理',
                icon: 'icon-changjingguanli',
                path: 'site',
                component: null,
                layout: null,
                params: null,
                type: 0,
                sort: 3,
                access: '',
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 09:51:50',
                updatedTime: '2023-11-23 17:17:13',
                revision: 9,
                roleFlag: true,
                children: [],
              },
              {
                id: 11,
                parentId: 2,
                belong: 1,
                name: '人员管理',
                icon: 'icon-renguanguanli',
                path: 'people',
                component: null,
                layout: null,
                params: null,
                type: 1,
                sort: 4,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 09:52:24',
                updatedTime: '2023-06-30 08:52:13',
                revision: 3,
                roleFlag: true,
                children: [
                  {
                    id: 12,
                    parentId: 11,
                    belong: 1,
                    name: '内部人员管理',
                    icon: 'icon-renguanguanli',
                    path: 'userAccount',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:02:11',
                    updatedTime: '2023-06-30 08:53:26',
                    revision: 9,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 412472,
                    parentId: 11,
                    belong: 1,
                    name: '居民信息管理',
                    icon: null,
                    path: 'residentInformation',
                    component: null,
                    layout: null,
                    params: null,
                    type: 0,
                    sort: 5,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-11-22 12:51:10',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
            ],
          },
          {
            id: 3,
            parentId: 0,
            belong: 1,
            name: '设备管理',
            icon: null,
            path: 'device',
            component: null,
            layout: null,
            params: null,
            type: 2,
            sort: 2,
            access: null,
            enabled: true,
            enabledLabel: '启用',
            visible: true,
            remark: null,
            createdTime: '2023-05-12 11:05:47',
            updatedTime: '2023-05-29 10:53:41',
            revision: 11,
            roleFlag: true,
            children: [
              {
                id: 13,
                parentId: 3,
                belong: 1,
                name: '智能设备管理',
                icon: 'icon-zhinengshebeiguanli',
                path: 'intelligentdevice',
                component: null,
                layout: null,
                params: null,
                type: 2,
                sort: 0,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 10:35:56',
                updatedTime: '2023-06-28 19:36:25',
                revision: 1,
                roleFlag: true,
                children: [
                  {
                    id: 4,
                    parentId: 13,
                    belong: 1,
                    name: '车辆管理',
                    icon: 'icon-cheliangguanli',
                    path: 'vehicle-manage',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 0,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: '2023-10-12 15:32:29',
                    revision: 14,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 14,
                    parentId: 13,
                    belong: 1,
                    name: '摄像头管理',
                    icon: 'icon-zhinengshebeiguanli',
                    path: 'camera-manage',
                    component: './deviceManager/camera',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:28:42',
                    updatedTime: '2023-06-30 10:17:21',
                    revision: 3,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 15,
                    parentId: 13,
                    belong: 1,
                    name: '执法记录仪管理',
                    icon: 'icon-zhifayiguanli',
                    path: 'recorder-manage',
                    component: './deviceManager/recorder',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 2,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:29:54',
                    updatedTime: '2023-10-12 15:38:25',
                    revision: 7,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 16,
                    parentId: 13,
                    belong: 1,
                    name: '对讲机管理',
                    icon: 'icon-duijiangjiguanli',
                    path: 'intercom',
                    component: './deviceManager/intercom',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 3,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:30:48',
                    updatedTime: '2023-10-12 15:48:55',
                    revision: 6,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 18,
                    parentId: 13,
                    belong: 1,
                    name: '公厕管理',
                    icon: 'icon-gongceguanli',
                    path: 'smartPublicToilet',
                    component: './deviceManager/smartPublicToilet',
                    layout: null,
                    params: null,
                    type: 0,
                    sort: 5,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:32:35',
                    updatedTime: '2023-10-12 15:52:36',
                    revision: 4,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 19,
                    parentId: 13,
                    belong: 1,
                    name: '智能垃圾房管理',
                    icon: 'icon-zhinenglajifangguanli',
                    path: 'smartGarbageRoom',
                    component: './deviceManager/smartGarbageRoom',
                    layout: null,
                    params: null,
                    type: 0,
                    sort: 6,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:33:22',
                    updatedTime: '2023-10-12 15:56:57',
                    revision: 4,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
              {
                id: 412471,
                parentId: 3,
                belong: 1,
                name: '基础设备管理',
                icon: 'icon-jichushebeiguanli',
                path: 'infrastructure',
                component: null,
                layout: null,
                params: null,
                type: 2,
                sort: 2,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-11-22 12:37:24',
                updatedTime: '2023-11-22 13:27:40',
                revision: 5,
                roleFlag: true,
                children: [
                  {
                    id: 49,
                    parentId: 412471,
                    belong: 1,
                    name: '垃圾箱管理',
                    icon: 'icon-jichushebeiguanli',
                    path: 'dumpsterManagement',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: '2023-11-24 08:59:51',
                    revision: 15,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 412484,
                    parentId: 412471,
                    belong: 1,
                    name: '公厕管理',
                    icon: null,
                    path: 'publicTolitManagement',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 2,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-11-24 08:57:15',
                    updatedTime: '2023-11-24 08:57:40',
                    revision: 2,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 412517,
                    parentId: 412471,
                    belong: 1,
                    name: '果壳箱管理',
                    icon: null,
                    path: 'nutshellVault',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 3,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2024-01-09 14:01:06',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
            ],
          },
          {
            id: 51,
            parentId: 0,
            belong: 1,
            name: '环境卫生管理',
            icon: null,
            path: 'sanitary',
            component: null,
            layout: null,
            params: null,
            type: 1,
            sort: 3,
            access: null,
            enabled: true,
            enabledLabel: '启用',
            visible: true,
            remark: null,
            createdTime: null,
            updatedTime: null,
            revision: 1,
            roleFlag: true,
            children: [
              {
                id: 52,
                parentId: 51,
                belong: 1,
                name: '任务中心',
                icon: 'icon-a-renwuzhongxin',
                path: 'taskCenter',
                component: null,
                layout: null,
                params: null,
                type: 2,
                sort: 1,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: null,
                updatedTime: null,
                revision: 1,
                roleFlag: true,
                children: [
                  {
                    id: 55,
                    parentId: 52,
                    belong: 1,
                    name: '人员设备分配',
                    icon: null,
                    path: 'deviceAssignment',
                    component: './sanitary/taskCenter/deviceAssignment',
                    layout: null,
                    params: null,
                    type: 3,
                    sort: 4,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 56,
                    parentId: 52,
                    belong: 1,
                    name: '排班管理',
                    icon: null,
                    path: 'scheduling',
                    component: './sanitary/taskCenter/scheduling',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 5,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 54,
                    parentId: 52,
                    belong: 1,
                    name: '任务记录',
                    icon: null,
                    path: 'taskRecord',
                    component: null,
                    layout: null,
                    params: null,
                    type: 3,
                    sort: 6,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 62,
                    parentId: 52,
                    belong: 1,
                    name: '人员行程',
                    icon: null,
                    path: 'personnelItinerary',
                    component: null,
                    layout: null,
                    params: null,
                    type: 3,
                    sort: 7,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
              {
                id: 63,
                parentId: 51,
                belong: 1,
                name: '质量考核管理',
                icon: 'icon-zhiliangkaoheguanli',
                path: 'quailtyAssessment',
                component: null,
                layout: null,
                params: null,
                type: 3,
                sort: 8,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: null,
                updatedTime: '2024-03-08 09:13:48',
                revision: 2,
                roleFlag: true,
                children: [
                  {
                    id: 64,
                    parentId: 63,
                    belong: 1,
                    name: '考核规则配置',
                    icon: null,
                    path: 'assessmentRule',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: '2023-10-12 16:12:08',
                    revision: 2,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 65,
                    parentId: 63,
                    belong: 1,
                    name: '抽样考核管理',
                    icon: null,
                    path: 'samplingAssessment',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 2,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: '2023-10-12 16:12:12',
                    revision: 2,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 66,
                    parentId: 63,
                    belong: 1,
                    name: '考核任务管理',
                    icon: '',
                    path: 'assessmanetTask',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 3,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-10-07 14:47:09',
                    updatedTime: '2023-10-12 16:12:16',
                    revision: 3,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 67,
                    parentId: 63,
                    belong: 1,
                    name: '质量考核整改',
                    icon: null,
                    path: 'assessmentRectification',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 4,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: '2023-10-12 16:12:19',
                    revision: 2,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
              {
                id: 68,
                parentId: 51,
                belong: 1,
                name: '事件上报管理',
                icon: 'icon-shijianshangbaoguanli',
                path: 'incidentReporting',
                component: null,
                layout: null,
                params: null,
                type: 3,
                sort: 9,
                access: '',
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: null,
                updatedTime: '2024-03-08 09:13:57',
                revision: 3,
                roleFlag: true,
                children: [
                  {
                    id: 69,
                    parentId: 68,
                    belong: 1,
                    name: '事件汇总',
                    icon: null,
                    path: 'incidentSummary',
                    component: './sanitary/incidentReporting/incidentSummary',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: '2023-11-06 14:59:26',
                    revision: 2,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 70,
                    parentId: 68,
                    belong: 1,
                    name: '事件整改',
                    icon: null,
                    path: 'incidentRectification',
                    component:
                      './sanitary/incidentReporting/incidentRectification',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 2,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: null,
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
            ],
          },
          {
            id: 5,
            parentId: 0,
            belong: 1,
            name: '垃圾分类管理',
            icon: null,
            path: 'garbageSorting',
            component: null,
            layout: null,
            params: null,
            type: 2,
            sort: 4,
            access: null,
            enabled: true,
            enabledLabel: '启用',
            visible: true,
            remark: null,
            createdTime: '2023-05-12 11:05:47',
            updatedTime: '2023-05-29 10:53:41',
            revision: 4,
            roleFlag: true,
            children: [
              {
                id: 20,
                parentId: 5,
                belong: 1,
                name: '智能分类业务',
                icon: 'icon-zhinengfenleiyewu',
                path: 'SanitationBusiness',
                component: null,
                layout: null,
                params: null,
                type: 2,
                sort: 0,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-05-29 10:35:56',
                updatedTime: null,
                revision: 1,
                roleFlag: true,
                children: [
                  {
                    id: 21,
                    parentId: 20,
                    belong: 1,
                    name: '满溢告警',
                    icon: 'icon-zihuguanli_',
                    path: 'alarm',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 0,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:37:07',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 22,
                    parentId: 20,
                    belong: 1,
                    name: '投递记录',
                    icon: 'icon-zihuguanli_',
                    path: 'deliveryRecord',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:38:04',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 26,
                    parentId: 20,
                    belong: 1,
                    name: '督导记录',
                    icon: 'icon-zihuguanli_',
                    path: 'supervise',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 5,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-05-29 10:42:20',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 412492,
                    parentId: 20,
                    belong: 1,
                    name: '清运记录',
                    icon: null,
                    path: 'cleanRecord',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 6,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-11-24 09:43:24',
                    updatedTime: '2023-12-05 13:42:15',
                    revision: 2,
                    roleFlag: true,
                    children: [
                      {
                        id: 412493,
                        parentId: 412492,
                        belong: 1,
                        name: '智能设备清运记录',
                        icon: null,
                        path: 'intelligent_clean_record',
                        component: null,
                        layout: null,
                        params: null,
                        type: 2,
                        sort: 1,
                        access: null,
                        enabled: true,
                        enabledLabel: null,
                        visible: true,
                        remark: null,
                        createdTime: '2023-11-24 09:45:18',
                        updatedTime: '2023-11-24 09:51:09',
                        revision: 3,
                        roleFlag: true,
                        children: [],
                      },
                      {
                        id: 412494,
                        parentId: 412492,
                        belong: 1,
                        name: '基础设备清运记录',
                        icon: null,
                        path: 'infrastructure_clean_record',
                        component: null,
                        layout: null,
                        params: null,
                        type: 0,
                        sort: 2,
                        access: null,
                        enabled: true,
                        enabledLabel: null,
                        visible: true,
                        remark: null,
                        createdTime: '2023-11-24 09:47:39',
                        updatedTime: '2023-11-24 09:51:20',
                        revision: 3,
                        roleFlag: true,
                        children: [],
                      },
                    ],
                  },
                ],
              },
              {
                id: 34,
                parentId: 5,
                belong: 1,
                name: '报表中心',
                icon: 'icon-baobiaozhongxin',
                path: 'Report',
                component: null,
                layout: null,
                params: null,
                type: 2,
                sort: 2,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-06-28 13:42:26',
                updatedTime: '2023-06-28 13:36:12',
                revision: 2,
                roleFlag: true,
                children: [
                  {
                    id: 35,
                    parentId: 34,
                    belong: 1,
                    name: '重量统计',
                    icon: null,
                    path: 'trashWeightStatistics',
                    component: 'garbageSorting',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-06-28 13:43:34',
                    updatedTime: '2023-06-28 15:14:22',
                    revision: 2,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 12403,
                    parentId: 34,
                    belong: 1,
                    name: '居民分类正确率',
                    icon: null,
                    path: 'residentCorrectStatistics',
                    component: './garbageSorting/residentCorrectStatistics',
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: '',
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-12-06 11:17:47',
                    updatedTime: '2024-01-02 14:49:44',
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 36,
                    parentId: 34,
                    belong: 1,
                    name: '投递次数统计',
                    icon: null,
                    path: 'trashCountStatistics',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 2,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-06-28 15:15:41',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 37,
                    parentId: 34,
                    belong: 1,
                    name: '投递正确率统计',
                    icon: null,
                    path: 'trashCorrectStatistics',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 3,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2023-06-28 15:21:07',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
              {
                id: 412518,
                parentId: 5,
                belong: 1,
                name: '宣教管理',
                icon: 'icon-xuanjiaoguanli',
                path: 'missionManagement',
                component: null,
                layout: null,
                params: null,
                type: 2,
                sort: 3,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2024-01-10 17:12:53',
                updatedTime: '2024-03-08 09:14:17',
                revision: 2,
                roleFlag: true,
                children: [
                  {
                    id: 412519,
                    parentId: 412518,
                    belong: 1,
                    name: '居民宣教',
                    icon: null,
                    path: 'residentMissions',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 1,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2024-01-10 17:13:43',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 412520,
                    parentId: 412518,
                    belong: 1,
                    name: '场景宣教',
                    icon: null,
                    path: 'sceneMissions',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 2,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2024-01-10 17:27:40',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                  {
                    id: 412521,
                    parentId: 412518,
                    belong: 1,
                    name: '任务汇总',
                    icon: null,
                    path: 'taskSummary',
                    component: null,
                    layout: null,
                    params: null,
                    type: 2,
                    sort: 3,
                    access: null,
                    enabled: true,
                    enabledLabel: null,
                    visible: true,
                    remark: null,
                    createdTime: '2024-01-10 17:27:57',
                    updatedTime: null,
                    revision: 1,
                    roleFlag: true,
                    children: [],
                  },
                ],
              },
              {
                id: 61,
                parentId: 5,
                belong: 1,
                name: '垃圾分类数据大屏',
                icon: 'icon-lajifenleidaping',
                path: 'redirectPage',
                component: null,
                layout: null,
                params: null,
                type: 2,
                sort: 6,
                access: null,
                enabled: true,
                enabledLabel: null,
                visible: true,
                remark: null,
                createdTime: '2023-07-12 11:57:39',
                updatedTime: '2024-03-07 14:18:22',
                revision: 2,
                roleFlag: true,
                children: null,
              },
            ],
          },
          {
            path: 'center',
            name: '个人中心',
            icon: 'UserAddOutlined',
            hideInMenu: true,
            component: './system/center',
          },
          {
            path: '404',
            name: '404',
            icon: 'UserAddOutlined',
            hideInMenu: true,
            component: './404',
          },
        ];
        const center = {
          path: 'center',
          name: '个人中心',
          icon: 'UserAddOutlined',
          hideInMenu: true,
          component: './Test',
        };
        const aaa = {
          path: '404',
          name: '404',
          icon: 'UserAddOutlined',
          hideInMenu: true,
          component: './404',
        };
        menuData.push(aaa);
        menuData.push(center);
      },
    },
    splitMenus: true,
    layout: 'mix',
    // collapsed:true,
    collapsedButtonRender: (value: boolean) => {
      console.log('collapsedButtonRender', value);
      // <h2>{ layouProps}</h2>
      return <h2> {'>'} </h2>;
    },
    onCollapse: (value: boolean) => {
      console.log(value);
    },
  };
};
